<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php

	error_reporting(E_ALL);
	include_once('./classes/system_functions.php');
	@session_start();
	
	$sys_func = new System_Functions;
	$challenge = $sys_func->generateChallange();
	$_SESSION['challenge'] = $challenge;
?>
<HTML>
<HEAD>
	<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="TEXT/HTML; CHARSET=UTF-8">
	<TITLE>Administración</TITLE>	
	
	<!--CSS-->
	<LINK rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css"/>
	<LINK rel="stylesheet" type="text/css" href="css/loadingmask.css"/>
	<LINK rel="stylesheet" type="text/css" href="css/botones.css"/>
	
	<!--CSS para el estilo del titulo-->
	<style type="text/css">
	
		#header {
			background: #7F99BE url(img/layout-browser-hd-bg.gif) repeat-x center;
		}
		#header h1 {
			font-size: 16px;
			color: #fff;
			font-weight: normal;
			padding: 5px 10px;
		}
		
	</style>
	
	<!--JS-->
	<SCRIPT type="text/javaSCRIPT" src="extjs/adapter/ext/ext-base-debug.js"></SCRIPT>
	<SCRIPT type="text/javaSCRIPT" src="extjs/ext-all-debug.js"></SCRIPT>
	<SCRIPT type="text/javaSCRIPT" src="extjs/src/locale/ext-lang-es.js"></SCRIPT>
	
	<!--Main-->
	<SCRIPT type="text/javaSCRIPT" src="api.php"></SCRIPT>
	<SCRIPT type="text/javaSCRIPT" src="js/sys/shared_functions.js"></SCRIPT>
	<SCRIPT type="text/javascript" src="extjs-extensions/ext.util.md5.js"></SCRIPT>
	<SCRIPT type="text/javaSCRIPT" src="js/administracion.js"></SCRIPT>
	
	<script>		
		<? echo "var challenge = \"".$_SESSION['challenge']."\";"; ?>		
	</script> 
	
</HEAD>
<BODY>

	<div id="loading-mask" class="loading-mask"> </div>
	<div id="loading" >
		<div class="loading-indicator"><img src="img/loading<?echo rand(0,5)?>.gif" width="32" height="32" style="margin-right:8px;float:left;vertical-align:top;"/>Administrador del sistema<br><span id="loading-msg">Cargando...</span></div>
	</div>	
</BODY>
</HTML>;